package com.bdk.middle.order.service;

import com.bdk.middle.common.result.ResultDO;
import com.bdk.middle.order.api.domain.TransactionDO;
import com.bdk.middle.order.api.query.TransactionQueryDO;
import com.bdk.middle.order.core.entity.TransactionEntity;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Reagan
 * @since 2021-03-18
 */
public interface TransactionService extends IService<TransactionEntity> {

    /**
     * 添加用户
     * @param domain 用户DO
     * @return ResultDO
     */
    public ResultDO add(TransactionDO domain);

    /**
     * 修改用户信息
     * @param domain 用户DO
     * @return ResultDO
     */
    public ResultDO edit(TransactionDO domain);

    /**
     * 修改用户信息
     * @param transactionNo
     * @param status
     * @return ResultDO
     */
    public ResultDO updateStatusTransactionNo(String transactionNo, int status);


    /**
     * 删除用户
     * @param id 用户ID
     * @return ResultDO
     */
    public ResultDO remove(String id);

    /**
     * 查找用户列表分页
     * @param domain 查询DO
     * @return ResultDO
     */
    public ResultDO find(TransactionQueryDO domain);
}
